package com.example.consult.service;

import com.example.consult.mapper.EmployeeMapper;
import com.example.consult.model.Employee;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class EmployeeService {
    @Autowired
    EmployeeMapper mapper;

    public Employee doLogin(String account, String pwd){
        return mapper.searchByAccountAndPassword(account, pwd);
    }
}
